package it.massetti.scoponescientifico.game;

import java.util.ArrayList;
import java.util.List;

public class Player {
	private List<Card> cards = new ArrayList<Card>();
	private int number;
	private Team team;
	
	public Player(int playerNumber, Team teamReference) {
		number = playerNumber;
		team = teamReference;
	}

	/** 
	 * Gave the player a card
	 * @param card
	 */
	void assignCard (Card card) {
		cards.add(card);
	}

	/**
	 * Gets the player number
	 * @return number
	 */
	public int getNumber() {
		return number;
	}

	/**
	 * Gets the team number
	 * @return
	 */
	public Team getTeam() {
		return team;
	}
	
	/**
	 * Gets the cards
	 */
	public List<Card> getCards() {
		return cards;
	}

}
